//    Copyright (C) Clear Office.  All rights reserved.
using Office.Core;

namespace Office.Spreadsheet
{
    class AddCellUndoUnit: IUndoUnit
    {
        public AddCellUndoUnit(Cell cell)
        {
            this._cell = cell;
        }

        readonly Cell _cell;
        #region IUndoUnit Members

        public void Do()
        {
            _cell.Worksheet.RemoveCell(_cell);
        }

        public bool Merge(IUndoUnit unit)
        {
            return false;
        }

        #endregion
    }
}
